import request from '@/utils/request'

// 查询气瓶名录列表
export function listCylindersType(query) {
  return request({
    url: '/labdata/cylindersType/list',
    method: 'get',
    params: query
  })
}
//allRestrictedKinds
export function getAllRestrictedKinds() {
  return request({
    url: '/labdata/cylindersType/allRestrictedKinds',
    method: 'get'
  })
}
// 查询气瓶名录详细
export function getCylindersType(cylindersType) {
  return request({
    url: '/labdata/cylindersType/' + cylindersType,
    method: 'get'
  })
}

// 新增气瓶名录
export function addCylindersType(data) {
  return request({
    url: '/labdata/cylindersType',
    method: 'post',
    data: data
  })
}

// 修改气瓶名录
export function updateCylindersType(data) {
  return request({
    url: '/labdata/cylindersType',
    method: 'put',
    data: data
  })
}

// 删除气瓶名录
export function delCylindersType(cylindersType) {
  return request({
    url: '/labdata/cylindersType/' + cylindersType,
    method: 'delete'
  })
}

// 导出气瓶名录
export function exportCylindersType(query) {
  return request({
    url: '/labdata/cylindersType/export',
    method: 'get',
    params: query
  })
}